package org.bees.cms.core.style;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity
public class Theme extends Style {
	private static final long serialVersionUID = -8946733832344432055L;

	private Set<Template> templates = new HashSet<Template>();

	@OneToMany(cascade = { CascadeType.REMOVE, CascadeType.REFRESH }, mappedBy = "theme")
	public Set<Template> getTemplates() {
		return templates;
	}

	public void setTemplates(Set<Template> templates) {
		this.templates = templates;
	}

}
